home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Disc to the Future 2
/
Disc to the Future Part II Programmer's Reference (Wayzata Technology)(6013)(1992).bin
/
MAC
/
THINKC
/
TCL1
/
GRAPH_FO
/
(GRAPH
/
GRAPH_HE
/
GREDGE.H
< prev
next >
Wrap
Text File
|
1991-02-16
|
1KB
|
40 lines
/******************************************************************************
GrEdge.h
Graph methods in Object C.
This implements the GrEdge class.
SUPERCLASS = GrNode
Copyright ⌐ 1991 Maarten Meijer. All rights reserved.
CIS 100016,1764; FidoNet 2:512/114
*******************************************************************************/
#define _H_GrEdge
/* includes */
#include "GrNode.h"
#include "GrVertex.h"
/* class definition */
struct GrEdge : GrNode {
/* instance variables */
GrVertex *fromVertex;
GrVertex *toVertex;
void IGraphNode(void); /* OVERRIDE */
/* Drawing methods */
void _Draw(void); /* OVERRIDE */
void Draw(void); /* OVERRIDE */
void _Erase(void); /* OVERRIDE */
void Erase(void); /* OVERRIDE */
/* Location methods */
void SetRegion(void); /* OVERRIDE */
Boolean Incident(GrNode *which); /* OVERRIDE */
void SetFrom(GrVertex *which);
GrVertex * GetFrom(void);
void SetTo(GrVertex *which);
GrVertex * GetTo(void);
void GetRect(Rect *rect);
Boolean NodeInRect(Rect *r);
};